/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 晓星航
 * Date: 2022-10-28
 * Time: 19:12
 */
public class TestDemo {
    public static void main(String[] args) {

    }
    public static void main1(String[] args) {
        MyArrayList myArrayList = new MyArrayList();
        myArrayList.add(0,1);
        myArrayList.add(1,2);
        myArrayList.add(2,3);
        myArrayList.add(3,4);
        myArrayList.add(4,5);
        myArrayList.add(5,6);
        myArrayList.add(6,7);
        myArrayList.display();
        System.out.println("=========================");
        myArrayList.remove(2);
        myArrayList.remove(3);
        myArrayList.display();
        System.out.println("=========================");
        myArrayList.clear();
        myArrayList.display();
        System.out.println("=========================");
    }
}
